/*
 * @Author       :
 * @Date         : 2022-01-24 21:34:15
 * @LastEditors  : Please set LastEditors
 * @LastEditTime : 2022-01-24 21:51:52
 * @Description  : 登录校验
 */
import i18n from '@/i18n'
export const validatePassword = () => {
  return (rule, value, callback) => {
    if (value.length < 6) {
      callback(new Error(i18n.global.t('msg.login.passwordRule')))
    } else {
      callback()
    }
  }
}
